package com.lazy.lib.util;

/**
 * 常用的工具类
 * 
 * @author luodan
 *
 */
public class Utils {
    public static String getExceptionTip(Throwable e) {
        String ret = null;
        if (e != null) {
            ret = "msg:" + e.getMessage() + " stacktrace:";
            StackTraceElement[] stes =  e.getStackTrace();
            for(StackTraceElement ste : stes) {
                ret = ret + ste.toString() + "\n";
            }
        }
        return ret;
    }
}
